<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2019/1/13
 * Time: 19:18
 */
namespace common\sources\read\rechargerecord;

use common\models\craftsman\RechargeRecord;

class RechargeRecordAccess implements IRechargeRecordAccess
{
    public function getRechargeRecord($orderId)
    {
        return RechargeRecord::find()
            ->select("id,uid,type,money,merchant_order,pay_status")
            ->where(["merchant_order" => $orderId])
            ->asArray()
            ->one();
    }
}